Skip to main content

Body structure (JSON)

Required fields are in bold.

FieldExampleType and formatComments
{
"partnerFrom"invoice creator
{
"tin""001",stringfiscal ID
"name""Lorem",stringname
"vatNumber""26796",stringVAT number
"city""Odesa",stringcity
"street""Test 2 street",stringstreet
"postalCode""10800"stringpostal code
"countryCode""UA”stringcountry code
},
"partnerTo"invoice receiver
{
"tin""002",stringfiscal ID
"name""Test",stringname
"vatNumber""2004673",stringVAT number
"city""Odesa",stringcity
"street""Test street",stringstreet
"postalCode""10000"stringpostal code
"countryCode""UA”stringcountry code
“isResident”trueboolresidency
},
"msgID"30,intunique request ID
"invoiceNumber""30",stringinvoice number
"oper""invoice_cor",stringan operation should be either ‘invoice’ or ‘invoice_cor’
"documentTypeCode"381,inta document type code, should be 380 for “invoice” and 381 or 384 for “invoice_cor”
"parentFiscalNum"“FA00145”,stringis mandatory for ‘invoice_cor’
"currency"“UAH”,stringcurrency (by ISO-4217 standard)
"payments"list of payments (optional)
[
{
"type""CASH",stringpayment type
"amount"393.4,floatamount
"dat""2025-01-02T10:25:21.076Z",dateTime of ISO-8601 formatpayment date
}
],
"employee""Bryan Laserna",stringemployee’s name and surname
"buyerReference""test cost center",stringbuyer reference
"specificationId""test specification",stringspecification ID
"dateTime""2025-01-02T092521.076Z",dateTime of ISO-8601 formatthe fiscalisation date and time
“invoiceDateTime”"2025-01-02T092521.076Z",dateTime of ISO-8601 formatinvoice creation date
"taxTotals"sum of all items’ taxes
[
{
"taxCode""A",stringtax code
"taxRate"15,floattax rate
"taxAmount"26.09floattax amount
"baseAmount"700floatbase amount
}
],
"items"list of items
[
{
"lineId""1",stringline ID
"poLine""5",stringpurchase order line ID
"name""Pepsi 0.3l",stringname
"unit""PCE",stringunit (by UN/CEFACT standard)
"qty"1,floatquantity
"price"200,floatprice
"amount"200,floatresulting amount
"discount"0,floatdiscount
"discountPrc"0,floatdiscount (in %)
"taxes"list of taxes
[
{
"taxCode""A",stringtax code
"taxRate"15,floattax rate
"taxBase"200,floatamount from which the tax is calculated
"taxAmount"26.09floattax amount
}
]
}
],
"totalAmount"180,floattotal amount
"vatTotalAC"160.6,floatVAT amount in accounting currency
"amountDue"23.8,floatamount due for payment
"paymentTerms”"test terms",stringpayment terms, either paymentTerms or paymentDueDate should be present if amountDue > 0
"paymentDueDate""2025-21-25",date in format YYYY-MM-DDpayment due date, either paymentTerms or paymentDueDate should be present if amountDue > 0
"totalNetAmount"170,floattotal net amount
"totalVatAmount"23.8floattotal VAT amount
}

Example:

{
  "partnerFrom": {
    "tin": "001",
    "name": "Lorem",
    "vatNumber": "26796",
    "city": "Odesa",
    "street": "Test 2 street",
    "postalCode": "10800",
    "countryCode": "UA"
  },
  "partnerTo": {
    "tin": "002",
    "name": "Test",
    "vatNumber": "2004673",
    "city": "Odesa",
    "street": "Test street",
    "postalCode": "10000",
    "countryCode": "UA",
    "isResident": true
  },
  "msgID": 30,
  "invoiceNumber": "30",
  "oper": "invoice_cor",
  "documentTypeCode": 381,
  "parentFiscalNum": "FA00145",
  "currency": "UAH",
  "payments": [
    {
      "type": "CASH",
      "amount": 393.4,
      "dat": "2025-01-02T10:25:21.076Z"
    }
  ],
  "employee": "Bryan Laserna",
  "buyerReference": "test cost center",
  "specificationId": "test specification",
  "dateTime": "2025-01-02T092521.076Z",
  "invoiceDateTime": "2025-01-02T092521.076Z",
  "taxTotals": [
    {
      "taxCode": "A",
      "taxRate": 15,
      "taxAmount": 26.09,
      "baseAmount": 700
    }
  ],
  "items": [
    {
      "lineId": "1",
      "poLine": "5",
      "name": "Pepsi 0.3l",
      "unit": "PCE",
      "qty": 1,
      "price": 200,
      "amount": 200,
      "discount": 0,
      "discountPrc": 0,
      "taxes": [
        {
          "taxCode": "A",
          "taxRate": 15,
          "taxBase": 200,
          "taxAmount": 26.09
        }
      ]
    }
  ],
  "totalAmount": 180,
  "vatTotalAC": 160.6,
  "amountDue": 23.8,
  "paymentTerms": "test terms",
  "paymentDueDate": "2025-21-25",
  "totalNetAmount": 170,
  "totalVatAmount": 23.8
}